<?php
class Customer_Service_Balance
{

	public static function add($row){
		$Obj = new Customer_Model_Balance();
		return $Obj->add($row);		
	}
	
	public static function update($row,$id){
		$Obj = new Customer_Model_Balance();
		return $Obj->update($row,$id);		
	}
	
	public static function delete($id){
		$Obj = new Customer_Model_Balance();
		return $Obj->delete($id);		
	}
		
	
	 
	public static function getByCustomerId($CustomerId){
		$obj = new Customer_Model_Balance();
		if($obj->getByCustomerId($CustomerId)){
			return $obj->getByCustomerId($CustomerId)->toArray();
		}
	}
	
	/**
	*根据客户ID更新
	*/
	public static function updateCustomerId($row,$CustomerId){
		$obj = new Customer_Model_Balance();
		return $Obj->update($row,$CustomerId);
	}
	

}